package org.krishna.model;



import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "VERIFICATION")
public class Verification implements Serializable{
	
	/** The Constant serialVersionUID. */
	@Transient
	private static final long serialVersionUID = -7660824605183781430L;
	
	
	@Id
	@GeneratedValue
	@Column(name = "VERIFICATION_ID")
	private long verificationId;

	@ManyToOne
	@JoinColumn(name = "USER_ID")
	private UserDetails userDetails;
	
	@ManyToOne
	@JoinColumn(name = "BOOK_ID")
	private BookDetails bookDetails;
	
	@ManyToOne
	@JoinColumn(name = "STATUS")
	private Status status;

	/**
	 * @return the verificationId
	 */
	public long getVerificationId() {
		return verificationId;
	}

	/**
	 * @param verificationId the verificationId to set
	 */
	public void setVerificationId(long verificationId) {
		this.verificationId = verificationId;
	}

	/**
	 * @return the userDetails
	 */
	public UserDetails getUserDetails() {
		return userDetails;
	}

	/**
	 * @param userDetails the userDetails to set
	 */
	public void setUserDetails(UserDetails userDetails) {
		this.userDetails = userDetails;
	}

	/**
	 * @return the bookDetails
	 */
	public BookDetails getBookDetails() {
		return bookDetails;
	}

	/**
	 * @param bookDetails the bookDetails to set
	 */
	public void setBookDetails(BookDetails bookDetails) {
		this.bookDetails = bookDetails;
	}

	/**
	 * @return the status
	 */
	public Status getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Status status) {
		this.status = status;
	}		
}
